package com.pay.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pay.order.pojo.PayOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface PayOrderMapper extends BaseMapper<PayOrder> {
    @Update(value = "update pay_order set status=#{status},update_time=now() where id=#{id}")
    void updateStatusById(@Param("id") Integer id, @Param("status") Integer status);
}
